#include "MovingPathAnimation.h"

MovingPathAnimation::MovingPathAnimation (const std::list<PathEntry>& _path, animid_t id):
	path(_path), Animation(id) {}

std::list<PathEntry>::iterator MovingPathAnimation::GetFirstPathEntry(void) { return path.begin(); }

std::list<PathEntry>::iterator MovingPathAnimation::GetLastPathEntry(void) { return path.end(); }
    
void MovingPathAnimation::SetPath(const std::list<PathEntry>& p) { 
	path.clear(); path = p; }
    
Animation* MovingPathAnimation::Clone(animid_t newId) const { 
	return new MovingPathAnimation(path, newId); 
}
